<!DOCTYPE html>
<html lang="en">
<#header />

<body>
<div class="layui-fluid">
    <div class="layui-row" style="margin-top:30px;">
        <form id="userForm" method="post" class="layui-form layui-form-pane" action="/user/doCreate.btl">
            <div class="layui-form-item">
                <label class="layui-form-label">部门ID</label>
                <div class="layui-input-block">
                    <input type="text" disabled  value="${org.orgName}" required  lay-verify="required"  autocomplete="off" class="layui-input">
                </div>
            </div>


            <div class="layui-form-item">
                <label class="layui-form-label">部门名称</label>
                <div class="layui-input-block">
                    <input type="text" disabled  value="${org.orgDesc}" required  lay-verify="required" autocomplete="off" class="layui-input">
                </div>
            </div>


            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit lay-filter="deptForm">返回</button>
                </div>
            </div>
        </form>
    </div>
</div>

<script>
    layui.use(["element","form","jquery","layer"],function(){
        var form = layui.form;
        var element = layui.element;
        var $ = layui.$;
        var layer =layui.layer;
        form.on('submit(deptForm)',function(data){
             layer.msg('返回至管理界面？', {
                        time: 0 //不自动关闭
                        ,btn: ['返回', '取消']
                        ,yes: function(index){
                            layer.close(index);
                            var index = parent.layer.getFrameIndex(window.name);
                            parent.layer.close(index);
                        }
              });
            return false;
        });
    });
</script>
</body>
</html>